package com.example.poemtest.mine;

import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.core.content.FileProvider;

import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.PopupWindow;
import android.widget.TextView;

import com.example.poemtest.R;
import com.example.poemtest.utils.FullScreenUtil;

import java.io.File;
import java.io.IOException;

/**
 * 个人信息页面
 */
public class PersonalMessageActivity extends AppCompatActivity {

    public static final int TAKE_PHOTO = 1;
    private Uri imageUri;
    public static final int CHOOSE_PHOTO = 2;
    private PopupWindow pop;

    private ImageView back, mine_head;
    private EditText nikeName,heigth,weight;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FullScreenUtil.getInstance().fullScreen(this,true);
        setContentView(R.layout.activity_personal_message);
        //绑定控件对象
        initView();
        back = findViewById(R.id.setup_safe_to_mine);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //返回到上一步
                PersonalMessageActivity.this.finish();
//                //跳转到设置页面
//                Intent intent = new Intent(PersonalMessageActivity.this, SetupActivity.class);
//                startActivity(intent);
            }
        });
    }

    /**
     * 绑定控件对象
     */
    private void initView() {
        mine_head = findViewById(R.id.mine_head1);
        nikeName = findViewById(R.id.mine_name);
//        nikeName.setText(Constant.nikeName1);
//        if (!Constant.chusheng.equals("")) {
//            etDay.setText(Constant.chusheng);
//        }
        heigth = findViewById(R.id.heigth);
//        heigth.setText(Constant.userHeight);
        weight = findViewById(R.id.weight);
//        weight.setText(Constant.userWeight);
    }

}